package net.lahuobao.mall.service.impl.admin;

import com.alibaba.fastjson.JSONObject;
import net.lahuobao.mall.dao.admin.MallProjectUpdateLogMapper;
import net.lahuobao.mall.dao.admin.MallTransProjectEmployeeMapper;
import net.lahuobao.mall.dao.admin.MallTransProjectMapper;
import net.lahuobao.mall.entity.admin.*;
import net.lahuobao.mall.entity.admin.querymodel.MallProjectEmployeeModel;
import net.lahuobao.mall.entity.admin.querymodel.MallProjectModel;
import net.lahuobao.mall.entity.admin.resultmodel.MallProjectEmployee;
import net.lahuobao.mall.service.admin.MallProjectEmployeeServiceI;
import net.lahuobao.mall.service.admin.MallProjectServiceI;
import org.apache.commons.lang.StringUtils;
import org.jeecgframework.core.common.model.json.DataGrid;
import org.jeecgframework.core.util.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.sql.Timestamp;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Lenovo on 2017/3/22.
 */
@Service("mallProjectEmployeeService")
@Transactional
public class MallProjectEmployeeServiceImpl implements MallProjectEmployeeServiceI {
    @Autowired
    private MallTransProjectEmployeeMapper mallTransProjectEmployeeMapper;


    @Override
    public List<MallTransProjectEmployee> selectAssociatedPerson(Map map, DataGrid dataGrid) {
        List<MallTransProjectEmployee> mallTransProjectEmployeeList = mallTransProjectEmployeeMapper.selectAssociatedPerson(map);
        int count = mallTransProjectEmployeeMapper.count();
        dataGrid.setTotal(count);
        dataGrid.setResults(mallTransProjectEmployeeList);
        return mallTransProjectEmployeeList;
    }
}
